package com.design.builder.sql;

import java.util.Arrays;

public class Test {

    public static void main(String[] args) {

        QueryRule queryRule = QueryRule.getInstance();
        queryRule.addAscOrder("age")
                .andEqual("addr", "shangtang")
                .andLike("name", "tom");
        QueryRuleSqlBuilder builder = new QueryRuleSqlBuilder(queryRule);
        System.out.println(builder.builder("t_number"));


        System.out.println("Params:" + Arrays.toString(builder.getValues()));

    }
}
